﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum AddMoneyType
    {
        /// <summary>
        /// 在线支付
        /// </summary>
        OnlinePay=0,
        /// <summary>
        /// 后台充值
        /// </summary>
        AdminAdd=1,
        /// <summary>
        /// 代理充值
        /// </summary>
        SurrogateAdd=2,
        /// <summary>
        /// 点卡充值
        /// </summary>
        CardPay=3,
    }

    public static class AddMoneyTypeEx
    {
        public static string GetName(this AddMoneyType type)
        {
            switch (type)
            { 
                case AddMoneyType.AdminAdd:
                    return "手工充值";
                case AddMoneyType.OnlinePay:
                    return "在线充值";
                case AddMoneyType.SurrogateAdd:
                    return "代理充值";
                case AddMoneyType.CardPay:
                    return "点卡充值";
                default:
                    return type.ToString();
            }
        }
    }
}
